package com.JFapp.service;

import com.JFapp.domain.dto.ArticleDto;
import com.JFapp.domain.dto.ArticleStatusDto;
import com.JFapp.domain.entity.Article;
import com.JFapp.domain.entity.ResponseResult;
import com.baomidou.mybatisplus.extension.service.IService;


/**
 * (Article)表服务接口
 *
 * @author makejava
 * @since 2024-03-13 19:10:48
 */
public interface ArticleService extends IService<Article> {

    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult writeArticle(ArticleDto article);

    ResponseResult getArticleList(Integer pageNum, Integer pageSize);

    ResponseResult deleteArticle(Long id);

    ResponseResult getDetailById(Long id);

    ResponseResult updateArticle(ArticleDto articleDto);

    ResponseResult updateArticleStatus(ArticleStatusDto articleStatusDto);
}
